#include <sys/utsname.h>
#include <stdio.h>

int main() {
    struct utsname sysinfo;
    if (uname(&sysinfo) < 0) {
        perror("uname");
        return 1;
    }
    printf("System: %s\n", sysinfo.sysname);
    printf("Node: %s\n", sysinfo.nodename);
    printf("Release: %s\n", sysinfo.release);
    printf("Version: %s\n", sysinfo.version);
    printf("Machine: %s\n", sysinfo.machine);
    return 0;
}
